<?php if(!defined('PHPOK_SET')){die('<h3>Error...</h3>');}?><?php QG_C_TEMPLATE::p("global_head","","0");?>
<?php QG_C_TEMPLATE::p("right.css","","0");?>
<?php QG_C_TEMPLATE::p("right.head","","0");?>

<!-- 分类列表 -->
<div class="table2">
	&nbsp;<a href="admin.php?file=index">系统首页</a>
	&raquo; <a href="admin.php?file=sysgroup&act=list">系统组管理</a>
	&raquo; <a href="admin.php?file=category&act=list&sysgroupid=<?php echo $sysgroupid;?>"><?php echo $groupname;?>分类列表</a>
	<input class="OFF" type="button" value="添加根分类" onclick="window.location='admin.php?file=category&act=add&sysgroupid=<?php echo $sysgroupid;?>'">
</div>

<script language="JavaScript">
function delete_confirm(aaa)
{
	question = confirm("确认删除该分类吗？如果当前分类存在子分类或内容信息，是无法删除的\n\n\t删除后无法恢复！");
	if (question != "0")
	{
		window.location.href="admin.php?file=category&act=delete&sysgroupid=<?php echo $sysgroupid;?>&id="+aaa;
	}
}
</script>
<?php $_i=0;$catelist=(is_array($catelist))?$catelist:array();foreach($catelist AS  $key=>$value){$_i++; ?>
<div  style="border-bottom:1px solid #eee;" class="table" onmouseover="this.className='table table1'" onmouseout="this.className='table'" id="category_id_<?php echo $value[id];?>">
<table>
<tr>
	<td class="listinfo" width="300px">
		 <?php echo $value[space];?><span style="color:#999">┠</span> <?php echo $value[catename];?> <span class="clue_on">[<?php echo $value[id];?>]</span>
		<?php if(!$value[status] || $value[status] == 0){?>
		<span style="color:red;">[隐藏]</span>
		<?php } ?>
	</td>
	<td class="listact">
		<a href="#" onclick="qgurl('admin.php?file=category&act=modify&id=<?php echo $value[id];?>');">编辑</a>
		<a href="#" onclick="delete_confirm(<?php echo $value[id];?>);" <?php if($key==0){ echo 'class="OFF"';}?> >删除</a> | 
		<a href="#" onclick="qgurl('admin.php?file=category&act=add&cateid=<?php echo $value[id];?>')">添加子分类</a> | 
		<a href="#" onclick="qgurl('admin.php?file=msg&act=list&sysgroupid=<?php echo $sysgroupid;?>&cateid=<?php echo $value[id];?>')">内容管理</a>
		<a href="#" onclick="qgurl('admin.php?file=msg&act=add&cateid=<?php echo $value[id];?>')">添加内容</a>
	</td>
</tr>
</table>
</div>
<?php } ?>

<?php QG_C_TEMPLATE::p("foot","","0");?>